﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Optimization;

namespace cycle_tracking
{
    public static class BundleExtensions
    {
        public static void EnableGarminBundle(this BundleCollection bundles)
        {
            var garminJS = new Bundle("~/garmin/js");

            garminJS.AddFile("~/Scripts/prototype.js");
            garminJS.AddDirectory("~/Scripts/garmin/util", "*.js");
            garminJS.AddDirectory("~/Scripts/garmin", "*.js", searchSubdirectories: true);
            
            bundles.Add(garminJS);
        }
    }
}